using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Script1 : MonoBehaviour
{
    string name = "Script1";

    private void Awake()
    {
        Debug.Log($"{name} Awake called!");
    }


    // Start is called before the first frame update
    void Start()
    {
        Debug.Log($"{name} Start called!");
    }


    bool _update = false;
    // Update is called once per frame
    void Update()
    {
        if (!_update)
        {
            Debug.Log($"{name} Update called!");
            _update = true;
        }
       
    }

    bool _lateupdate = false;
    private void LateUpdate()
    {
        if (!_lateupdate)
        {
            Debug.Log($"{name} LateUpdate called!");
            _lateupdate = true;
        }
    }


    bool _fixUpdate = false;
    private void FixedUpdate()
    {
        if (!_fixUpdate)
        {
            _fixUpdate = true;
            Debug.Log($"{name} FixedUpdate called!");
        }
    }
}
